package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    //分页查询角色信息
    PageResult findPage(QueryPageBean queryPageBean);
    //添加角色
    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    Role findById(Integer id);

    //编辑角色
    void edit(Integer[] permissionIds, Integer[] menuIds, Role role);

    Boolean deleteById(Integer role_id);

    List<Role> findAll();

    List<Integer> findRoleIdsByUserId(Integer userId);
}
